package com.xbongbong.pro.domain.entity;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 表单服务
 * @author 吴峰
 * @date 2021/03/09 14:31
 */
@Getter
@Setter
@ToString
public class PaasFormServiceEntity extends Entity {
    private static final long serialVersionUID = 3673378586107044493L;

    private Long id;

    private String corpid;

    private Long formId;

    private Integer saasMark;

    private Integer businessType;

    private String name;

    /**
     * 单据提交
     */
    private Integer commitFlag;
    /**
     * 单据编辑
     */
    private Integer editFlag;
    /**
     * 单据删除
     */
    private Integer deleteFlag;
    /**
     * 单据提交服务id
     */
    private Long commitServiceId;
    /**
     * 单据提交服务参数
     */
    private String commitServiceParam;
    /**
     * 单据编辑服务id
     */
    private Long editServiceId;
    /**
     * 单据编辑服务参数
     */
    private String editServiceParam;

    /**
     * 单据删除服务id
     */
    private Long deleteServiceId;

    /**
     * 单据删除服务参数
     */
    private String deleteServiceParam;

    private Integer sort;

    private String creatorId;

    private Long addTime;

    private Long updateTime;

    private Integer del;

    public PaasFormServiceEntity() {
        this.del = DelEnum.NORMAL.getDel();
    }

    public PaasFormServiceEntity(String corpid, Long formId, Integer saasMark, Integer businessType, String name, Integer commitFlag, Integer editFlag, Integer deleteFlag, Long commitServiceId,
                                 String commitServiceParam, Long editServiceId, String editServiceParam, Long deleteServiceId, String deleteServiceParam, Integer sort, String creatorId, Long addTime,
                                 Long updateTime) {
        this.corpid = corpid;
        this.formId = formId;
        this.saasMark = saasMark;
        this.businessType = businessType;
        this.name = name;
        this.commitFlag = commitFlag;
        this.editFlag = editFlag;
        this.deleteFlag = deleteFlag;
        this.commitServiceId = commitServiceId;
        this.commitServiceParam = commitServiceParam;
        this.editServiceId = editServiceId;
        this.editServiceParam = editServiceParam;
        this.deleteServiceId = deleteServiceId;
        this.deleteServiceParam = deleteServiceParam;
        this.sort = sort;
        this.creatorId = creatorId;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.del = DelEnum.NORMAL.getDel();
    }

    public PaasFormServiceEntity(Long id, String name, Integer commitFlag, Integer editFlag, Integer deleteFlag, Long commitServiceId, String commitServiceParam, Long editServiceId, String editServiceParam, Long deleteServiceId, String deleteServiceParam,  Integer sort, Long updateTime) {
        this.id = id;
        this.name = name;
        this.commitFlag = commitFlag;
        this.editFlag = editFlag;
        this.deleteFlag = deleteFlag;
        this.commitServiceId = commitServiceId;
        this.commitServiceParam = commitServiceParam;
        this.editServiceId = editServiceId;
        this.editServiceParam = editServiceParam;
        this.deleteServiceId = deleteServiceId;
        this.deleteServiceParam = deleteServiceParam;
        this.sort = sort;
        this.updateTime = updateTime;
    }
}
